package chapter8.extend_.improve_;
//父类
public class Student {
    //共有的属性
    public String name;
    public int age;
    private  double score;

    public void setScore(double score) {
        this.score = score;
    }
    public void showInfo(){
        System.out.println("名字"+name+ "年龄"+ age+"分数" + score);
    }
}
